package edu.qd.learn.newchapter.chapter04;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Vector;

/**
 * @author 布衣
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Student {

    private int sno;

    private String name;

    private double score;

}

//public class Student implements Comparable<Student> {
//
//    private int sno;
//
//    private String name;
//
//    private double score;
//
//    @Override
//    public int compareTo(Student o) {
//        return (int)(this.getScore() - o.getScore());
//    }
//}
